﻿using System.Drawing;
using System.Windows.Forms;
using AdferInternals;

namespace Adfer
{
    public partial class MatrixViewer : Form
    {
        private readonly double[][] _matrix;
        public MatrixViewer(double[][] matrix)
        {
            _matrix = matrix;
            InitializeComponent();
            textBox.Text = MathHelper.PrintMatrix(matrix);
            textBox.Font = new Font(textBox.Font.FontFamily, 6);
            Width = TextRenderer.MeasureText(textBox.Text, textBox.Font).Width;
            textBox.ScrollBars = ScrollBars.Both;
        }
    }
}